package com.ajaaxx.util;

public class Util {
	
	public static String mapUserType(String input){
		if(input.equals("S")) return "STUDENT";
		else if(input.equals("P")) return "PROFESSOR";
		else if(input.equals("D")) return "DIRECTOR";
		else return "UNKNOWN";
	}
	
	public static boolean isStudent(String userType){
		return userType.equals("S") || userType.equals("STUDENT");
	}
	public static boolean isProfessor(String userType){
		return userType.equals("P") || userType.equals("PROFESSOR");		
	}
	public static boolean isDirector(String userType){
		return userType.equals("D") || userType.equals("DIRECTOR");
	}

}
